/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.googlecode.ivybeans.module.completion.settings;

import com.googlecode.ivybeans.module.completion.IvyCompletionProvider;
import java.io.File;
import org.apache.ivy.Ivy;
import org.apache.ivyde.common.completion.CodeCompletionProposal;
import org.apache.ivyde.common.completion.IvyCodeCompletionProcessor;
import org.apache.ivyde.common.ivysettings.IvySettingsModel;
import org.apache.ivyde.common.model.IvyFile;
import org.apache.ivyde.common.model.IvyModelSettings;

/**
 *
 * @author xavier
 */
public class IvySettingsCompletionProvider extends IvyCompletionProvider {

    @Override
    protected IvyCodeCompletionProcessor getCodeCompletionProcessor(Ivy ivy, IvyModelSettings settings) {
        return new IvyCodeCompletionProcessor(
                new IvySettingsModel(settings, new File(getPrimaryFile().getPath())));
    }

}
